#!/bin/bash

if [ -f $1 ];
then
        echo "le fichier $1 existe!"
else
        echo "$1 FILE NOT FOUND!"
	exit -1
fi

if [ -f $2 ];
then
        echo "le fichier $2 existe!"
else
        echo "$2 FILE NOT FOUND!"
	exit -1
fi


if [ -f $3 ];
then
        echo "le fichier resultat $3 existe et sera ecrase!"
fi


echo "first argument is $1"
echo "second argument is $2"
echo "third argument is $3"

exit #pour quitter le script
